home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Know Your Baseball - The Greatest Player Resource
/
Know Your Baseball - Greatest Player.iso
/
Baseball
/
Director
/
SHARED.CST
/
00001_Script_setup scripts
next >
Wrap
Text File
|
1998-09-21
|
5KB
|
127 lines
-------------------- create enviroment for program -----------------------------
global gControls,gBt,gButtonStatus,SndFlag1,gMr1,gMr2,gTx,gWhat, CDPath
on setInits
set the exitLock = true
set gControls = EMPTY
set gControls =birth(script "MenuObject")
set SndFlag1 = 1
set gBT =[]
set gButtonStatus = 0
-- set the mousedownscript first time program is opened
set the mouseDownScript= "Menu"
set gTx = 1
SetMenuFunctions (gControls)
NewIndicators(gControls)
-- sets the correct range to look at for the button stay on function
if char 1 of the movieName = "k" then
set gMr1= 20
set gMr2 =34
else
set gMr1=22
set gMr2 =29
end if
if the movieName = "Home" or the movieName = "Beyond" then
set gMr1= 20
set gMr2 =45
end if
if the movieName = "KTG3" then
set gMr1= 18
set gMr2 =47
end if
-- sets CDPaths finding file
-- checks for exiting search path then set up file structure if needed
if the searchPath contains "Help" then
nothing
else
--set the exitlock to true
append the searchPath,"C:\axiabb"
append the searchPath, CDPath & "Director"
append the searchPath, CDPath & "Bin"
append the searchPath, CDPath & "Buttons"
append the searchPath, CDPath & "Controls"
append the searchPath, CDPath & "Dirmedia"
append the searchPath, CDPath & "Help"
append the searchPath, CDPath & "Images"
append the searchPath, CDPath & "Inclearn"
append the searchPath, CDPath & "Make"
append the searchPath, CDPath & "Midi"
append the searchPath, CDPath & "Other"
append the searchPath, CDPath & "Setup"
append the searchPath, CDPath & "Slideshow"
append the searchPath, CDPath & "Sounds"
append the searchPath, CDPath & "Sounds\Throwing"
append the searchPath, CDPath & "Sounds\Baserun"
append the searchPath, CDPath & "Sounds\Bcatch"
append the searchPath, CDPath & "Sounds\Stories"
append the searchPath, CDPath & "Sounds\Bunting"
append the searchPath, CDPath & "Sounds\Intro"
append the searchPath, CDPath & "Sounds\Intro\Beyond"
append the searchPath, CDPath & "Sounds\Intro\Anaylzer"
append the searchPath, CDPath & "Sounds\Intro\Skills"
append the searchPath, CDPath & "Sounds\Intro\Know"
append the searchPath, CDPath & "Sounds\Intro\Home"
append the searchPath, CDPath & "Sounds\Intro\Sequence"
append the searchPath, CDPath & "Sounds\Intro\Catch"
append the searchPath, CDPath & "Sounds\Flyballs"
append the searchPath, CDPath & "Sounds\Gndball"
append the searchPath, CDPath & "Sounds\Hitting"
append the searchPath, CDPath & "Sounds\Pitching"
append the searchPath, CDPath & "Sounds\Sliding"
append the searchPath, CDPath & "Sounds\KTG"
append the searchPath, CDPath & "Sounds\Throwing"
append the searchPath, CDPath & "Sounds\Stories"
append the searchPath, CDPath & "Subsets"
append the searchPath, CDPath & "Vfwrt"
append the searchPath, CDPath & "Images\Baserun"
append the searchPath, CDPath & "Images\Backcatc"
append the searchPath, CDPath & "Images\Btg"
append the searchPath, CDPath & "Images\Bunt"
append the searchPath, CDPath & "Images\Catch"
append the searchPath, CDPath & "Images\Flyballs"
append the searchPath, CDPath & "Images\Grndball"
append the searchPath, CDPath & "Images\Hit"
append the searchPath, CDPath & "Images\Htua"
append the searchPath, CDPath & "Images\Ktg"
append the searchPath, CDPath & "Images\Pitch" -- note which is right
append the searchPath, CDPath & "Images\Pitching" --note which isa right
append the searchPath, CDPath & "Images\Scripts"
append the searchPath, CDPath & "Images\Slide"
append the searchPath, CDPath & "Images\Throwing"
append the searchPath, CDPath & "bin"
end if
set the soundlevel = 7
end
-- looks to see if the requested file exits before launching axia.exe
on IsItOutThere
global DLPath, CDPath
set TheFile = AxiaFileExists(DLPath & "Axia.exe")
if not TheFile then
Alert "Could not find file " & DLPath & "axia.exe"
return TheFile
exit
end if
set TheFile = Empty
set TheFile = AxiaFileExists(CDPath & "controls\" & gwhat)
if not TheFile then
Alert "Could not find file " & CDPath & "controls\" & gwhat
end if
return TheFile
end